/*
 * @Author: wangdian
 * @Date: 2023-06-07 11:33:40
 * @LastEditors: wangdian
 * @LastEditTime: 2023-06-07 11:45:10
 * @Description: file content
 * @FilePath: \workspace\hello.js
 */
// 对象封装到模块中

// 定义函数
function Hello() {
    var name;
    this.setName = function (thyName) {//匿名函数
        name = thyName;
    };
    this.sayHello = function () {
        console.log('Hello ' + name);
    };
};
module.exports = Hello;